package com.cz.video.website.domain;

import com.cz.video.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 电影标签关联表
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description="电影标签关联表")
public class WebsiteVideoTag extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "标签id")
    private Long tagId;

    @Schema(description = "视频id")
    private Long videoId;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "排序字段，越大越靠前")
    private Integer sort;

    public WebsiteVideoTag(Long videoId, Long tagId) {
        this.videoId = videoId;
        this.tagId = tagId;
    }
}
